<div id="viewDetail">
    <table class="orderInfo" width="100%" border="0" cellspacing="0" cellpadding="3">
        <tr>
            <td style="width: 15%; text-align: center; font-size: 11pt">订单编号：</td>
            <td style="width: 35%;  font-size: 11pt;color: red;font-weight: bold">${order.orderId}</td>
            <td style="width: 15%; text-align: center; font-size: 11pt">创建时间：</td>
            <td style="width: 35%;  font-size: 11pt;color: red;font-weight: bold">${order.createTime}</td>
        </tr>

        <tr>
            <td style="width: 15%; text-align: center; font-size: 11pt">客户名称：</td>
            <td style="width: 35%;  font-size: 11pt;color: red;font-weight: bold">${order.buyerName}</td>
            <td style="width: 15%; text-align: center; font-size: 11pt">客户电话：</td>
            <td style="width: 35%;  font-size: 11pt;color: red;font-weight: bold">${order.buyerPhone}</td>
        </tr>

        <tr>
            <td style="width: 15%; text-align: center; font-size: 11pt">客户地址：</td>
            <td style="width: 85%;  font-size: 11pt;color: red;font-weight: bold" colspan="3">${order.buyerAddress}</td>
        </tr>

        <tr>
            <td style="width: 15%; text-align: center; font-size: 11pt">订单总额：</td>
            <td style="width: 85%;  font-size: 11pt;color: red;font-weight: bold" colspan="3">${order.orderAmount}</td>
        </tr>

        <tr>
            <td style="width: 15%; text-align: center; font-size: 11pt">订单状态：</td>
            <td style="width: 35%;  font-size: 11pt;color: red;font-weight: bold">${order.getOrderStatusEnum().message}</td>
            <td style="width: 15%; text-align: center; font-size: 11pt">支付状态：</td>
            <td style="width: 35%;  font-size: 11pt;color: red;font-weight: bold">${order.getPayStatusEnum().message}</td>
        </tr>
    </table>
    <table width="100%" border="1" cellspacing="0" cellpadding="3">
        <thead>
        <tr>
            <td colspan="5" style="font-size: 15pt;text-align: center;padding: 5px">订单明细</td>
        </tr>
        <tr>
            <th>商品id</th>
            <th>商品名称</th>
            <th>价格</th>
            <th>数量</th>
            <th>总额(元)</th>
        </tr>
        </thead>
        <tbody>
        <#list order.orderDetailList as orderDetail>
        <tr>
            <td>${orderDetail.productId}</td>
            <td>${orderDetail.productName}</td>
            <td>${orderDetail.productPrice}</td>
            <td>${orderDetail.productQuantity}</td>
            <td>${orderDetail.productQuantity * orderDetail.productPrice}</td>
        </tr>
        </tbody>
        </#list>
    </table>
</div>